package com.enzoism.springboot.designpattern.a03strategy;

public class StrategyBootStrap {
    public static void main(String[] args) {
        Hero xiaoming = new Hero("xiaoming", new AttackImplA());
        xiaoming.action();
        Hero xiaohong = new Hero("xiaohong", new AttackImplB());
        xiaohong.action();
    }
}
